package com.example.entity.vo.request.auth;

import jakarta.validation.Valid;
import jakarta.validation.constraints.Email;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * 邮箱验证码确认请求对象
 *
 * @auth shanyue
 * @date 2025年06月27日9:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Valid
public class ResetConfirmVO {

    @Email(message = "邮箱格式不正确")
    private String email;

    @Length(min = 6,max = 6,message = "验证码必须为6位")
    private String code;

}
